<%@ page language="java" import="java.util.*,entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>管理员
</TITLE>
<META http-equiv=Content-Type content="text/html;charset=utf-8" >
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=-1000>

<LINK href="/OrderMeal/css/admin.css" type="text/css" rel="stylesheet">
<link href="/OrderMeal/css/layout.css" type="text/css" rel="stylesheet">
<script language="javascript">
function check(form){
	if (form.food_no.value==""){
		alert("请输入菜品编号");
		return false;
	}		
}
</script>
  </head>
  
  <body>
<div id="container">
<div id="header"><jsp:include page="header.jsp"></jsp:include></div>
<div id="mainContent">
<div id="sidebar"><jsp:include page="managersf.jsp"></jsp:include></div>
<div id="content">


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR height=28>
    <TD background=/OrderMeal/Images/title_bg1.jpg>当前位置: 会员充值</TD></TR>
  <TR>
    <TD bgColor=#b1ceef height=1></TD></TR>
  <TR height=20>
    <TD background=/OrderMeal/Images/shadow_bg.jpg></TD></TR></TABLE>
       
     <center>
     <form method="post"  action="servlet/UserRecharge.do" name="rechargeForm" onsubmit="return check(rechargeForm)">
     
     <table>
     <tr><td>请输入会员编号：</td><td><input type="text" name="user_no" id="user_no" value=""/></td></tr>
     
     <tr><td>请选择充值数目：</td>
     <td><input type="radio" name="user_score" id="user_score" value="100" checked="checked"/>100
         <input type="radio" name="user_score" id="user_score" value="200" />200
         <input type="radio" name="user_score" id="user_score" value="500" />500
         <input type="radio" name="user_score" id="user_score" value="" />其他
     </td></tr>
     <tr><td></td><td><input type="text" name="score" id="score" value=""/></td></tr>
     <tr><td><input type="submit" name="submit" id="submit" value="充值"/></td>
         <td><input type="reset" name="reset" id="reset" value="重置"/></td></tr>     
     </table>     
     </form>
     </center>  
   
   
   
    <%List list = (List)request.getAttribute("List"); %>
   <center>
     <table width="100%">
	<tr bgcolor = "#99FFFF" >
		<td width = "20%"><div align = "center">会员编号</div></td>
		<td width = "20%"><div align = "center">会员姓名</div></td>
		<td width = "20%"><div align = "center">会员性别</div></td>
		<td width = "20%"><div align = "center">会员电话</div></td>
		<td width = "20%"><div align = "center">会员积分</div></td>		
	</tr>
	<%if(list != null){
		for(Object obj : list) {
		Users u = (Users)obj;
		
		%>
	<tr>
	<td width = "20%" align = "center"><%= u.getUser_no()%></td>
	<td width = "20%" align = "center"><%= u.getUser_name() %></td>
	<td width = "20%" align = "center"><%= u.getUser_sex()%></td>
	<td width = "20%" align = "center"><%= u.getUser_phone() %></td>	
	<td width = "20%" align = "center"><%= u.getUser_score() %></td>	
	<%}
	}
	%>
	
	</tr>
	
    </table>
 </center>
     
       
       
       
   </div>
</div>

<div id="footer" align="center">版权所有    中北大学10060641  郭倩</div>

</div>
  </body>
</html>